/* Markdown样式 */
.markdown-body {
  color: #24292e;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding: 1rem;
}

/* 深色模式 */
.dark .markdown-body {
  color: #e1e4e8;
  background-color: transparent;
}

.markdown-body a {
  color: #0366d6;
  text-decoration: none;
}

.markdown-body a:hover {
  text-decoration: underline;
}

.dark .markdown-body a {
  color: #58a6ff;
}

.markdown-body img {
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
}

.markdown-body kbd {
  background-color: #fafbfc;
  border: 1px solid #d1d5da;
  border-bottom-color: #c6cbd1;
  border-radius: 3px;
  box-shadow: inset 0 -1px 0 #c6cbd1;
  color: #444d56;
  display: inline-block;
  font-size: 0.8em;
  line-height: 1;
  padding: 0.2em 0.4em;
}

.dark .markdown-body kbd {
  background-color: #2d333b;
  border-color: #444c56;
  border-bottom-color: #545d68;
  box-shadow: inset 0 -1px 0 #545d68;
  color: #adbac7;
}

.markdown-body table {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
}

.markdown-body tr {
  background-color: #fff;
  border-top: 1px solid #e1e4e8;
}

.dark .markdown-body tr {
  background-color: #1e2127;
  border-top: 1px solid #3e4451;
}

.markdown-body tr:nth-child(2n) {
  background-color: #f6f8fa;
}

.dark .markdown-body tr:nth-child(2n) {
  background-color: #24292e;
}

.markdown-body hr {
  height: 2px;
  padding: 0;
  margin: 24px 0;
  background-color: #eaecef;
  border: 0;
}

.dark .markdown-body hr {
  background-color: #2f363d;
}

/* 代码块样式优化 */
.markdown-body pre {
  margin: 1em 0;
  padding: 1em;
  border-radius: 6px;
  overflow: auto;
  background-color: #f6f8fa;
}

.dark .markdown-body pre {
  background-color: #2d333b;
}

.markdown-body pre code {
  font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9em;
  word-wrap: normal;
  white-space: pre;
}

/* 行内代码样式 */
.markdown-body code:not([class*="language-"]) {
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  background-color: rgba(27, 31, 35, 0.05);
  border-radius: 3px;
}

.dark .markdown-body code:not([class*="language-"]) {
  background-color: rgba(240, 246, 252, 0.15);
} 